package com.juntu.event_center

/**
 * Created by cj on 2019/6/2.
 * desc:对事件进行基本的封装
 */
class Event : PooledObject {

    var topic: String? = null
    var msgCode: Int = 0
    var resultCode: Int = 0
    var data: Any? = null

    constructor()

    constructor(topic: String, msgCode: Int, resultCode: Int, data: Any) {
        this.topic = topic
        this.msgCode = msgCode
        this.resultCode = resultCode
        this.data = data
    }

    override fun reset() {
        topic = null
        msgCode = 0
        resultCode = 0
        data = null

    }
}